# -*- coding:utf-8 -*-
"""数据实体"""

from google.appengine.ext import db


class AdminUser(db.Model):
    """管理员"""
    username = db.StringProperty(required=True)
    pwd = db.StringProperty(required=True)


class User(db.Model):
    """普通用户"""
    userid = db.IntegerProperty(default=0)
    fetionsip = db.StringProperty(required=True)
    nickname = db.StringProperty(required=True)
    cellphone = db.StringProperty(required=True)


class Target(db.Model):
    """发送目标"""
    sip = db.StringProperty(required=True)
    city = db.StringProperty(required=True)


class NewUser(db.Model):
    """新申请用户"""
    id = db.IntegerProperty(default=0)
    phone = db.StringProperty(required=True)
    city = db.StringProperty(required=True)
    msg = db.TextProperty()


class City(db.Model):
    """定制天气城市"""
    cityid = db.IntegerProperty(default=0)
    cityname = db.StringProperty(required=True)
    uri = db.StringProperty(required=True)